<script type="text/javascript">
<!--
var l_quoteMsgAlert="{$l_quoteMsgAlert}";

function checkBrowser()
{
this.ver=navigator.appVersion;
this.dom=document.getElementById?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ns6=(this.dom && parseInt(this.ver)>= 5)?1:0;
this.safari=(this.ver.indexOf("safari")>-1)?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.opr=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)?1:0;
return this
}

function getQuotation(User, t, post) {
var bw=new checkBrowser();
var displayQuote={$displayQuote};
if(t==2) intxt="{$l_reply}"; else intxt="{$l_quoting}";
if (displayQuote && (bw.dom || bw.ns6 || bw.ie5 || bw.ie6 || bw.ie7 || bw.ns4 || bw.safari || bw.opr)) {
document.writeln('<a href="javascript:paste_strinL(selektion,'+t+',\'\',\'\',\'\',\'' + User + '\','+post+')" onmousemove="pasteSel()">'+intxt+'<'+'/a>');
}
}

function getToPost(){
if(globalPost!=0) {
document.getElementById('msg'+globalPost).focus();
}
else alert('{$l_backToPostLink}');
}

//-->
</script>
<script type="text/javascript" src="{$main_url}/templates/form.js"></script>

<table class="forums">
<tr>
<td class="icon"><img src="{$main_url}/img/forum_icons/{$forumIcon}" style="width:{$fIconWidth}px;height:{$fIconHeight}px" alt="{$forumName}" title="{$forumName}" /></td>
<td class="caption3"><a href="{$main_url}/{$startIndex}">{$sitename}</a> / <a href="{$linkToForums}">{$forumName}</a> / 
</td>
</tr>
<tr>
<td class="tbTransparentCell" colspan="3"><h1 class="headingTitle">{$topic_reverse}{$topicName}</h1></td>
</tr>
</table>

<!--pageNav-->
<table class="tbTransparent{$mbpn}">
<tr><td class="tbTransparentCell"><span class="txtSm"><b>{$pageNav}&nbsp;</b></span></td></tr>
</table>
<!--/pageNav-->

<form action="{$main_url}/{$indexphp}" method="post" class="formStyle" id="allMsgs">

{$listPosts}

<table><tr><td>
<input type="hidden" name="action" value="delmsg" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="forum" value="{$forum}" />
<input type="hidden" name="topic" value="{$topic}" />
<input type="hidden" name="csrfchk" value="" />
</td></tr></table>

</form>

<!--pageNav-->
<table class="tbTransparent{$mbpn}">
<tr><td class="tbTransparentCell"><span class="txtSm"><b>{$pageNav}&nbsp;</b></span></td></tr>
</table>
<!--/pageNav-->

<table class="forums">
<tr>
<td class="icon"><img src="{$main_url}/img/forum_icons/{$forumIcon}" style="width:{$fIconWidth}px;height:{$fIconHeight}px" alt="{$forumName}" title="{$forumName}" /></td>
<td class="caption3"><a href="{$main_url}/{$startIndex}">{$sitename}</a> / <a href="{$linkToForums}">{$forumName}</a> / {$topicName}</td>
<td class="caption3 txtR noWrap">&uarr; <span class="txtSm"><a href="#top" rel="nofollow">{$l_goUp}</a></span></td>
</table>

<script type="text/javascript">
<!--
var l_accessDenied="{$l_forbidden}";
var tlength={$post_text_minlength};
var anonPost={$anonPost};

function getCSRFCookie() {

var name='{$cookiename}'+'_csrfchk';
var start = document.cookie.indexOf(name + "=");
var len = start + name.length +1;
if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) return '';
if ( start == -1 ) return '';
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}

function confirmDelete(id,what){
var mes,url='forum={$forum}&topic={$topic}&';
if(what==0) { mes='{$l_areYouSureDeletePost}'; url=url+'action=delmsg&page={$page}&post='+id; }
else if(what==1) { mes='{$l_areYouSureDeleteTopic}'; url=url+'action=deltopic'; }
else if(what==2) { mes='{$l_deleteAllMsgs}?'; }
if( (what==0 || what==1) && confirm(mes)) {
var csrfcookie=getCSRFCookie();
if(csrfcookie!='') csrfcookie='&csrfchk='+csrfcookie;
document.location='{$main_url}/{$indexphp}'+url+csrfcookie;
}
else if(what==2 && confirm(mes)) {
document.forms['allMsgs'].elements['csrfchk'].value=getCSRFCookie();
document.forms['allMsgs'].submit();
}
}

//-->
</script>

{$mainPostArea}

<table class="tbTransparent">
<tr><td class="tbTransparentCell">{$closeTopic} {$moveTopic} {$deleteTopic} {$deleteAllMsgs} {$stickyTopic} {$subsTopic}&nbsp;</td></tr>
</table>

{$forumsList}

<script type="text/javascript">
<!--
if(document.forms['postMsg']) document.forms['postMsg'].elements['subbut'].disabled=false;
//-->
</script>